package edu.sctu.wujiayi.month06.day20150608.Date;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by user11 on 2015/6/8.
 */
public class DateOne {


    public static void main(String arg[]){
        //初始化Date对象
        Date date = new Date();

        //使用toString()函数显示日期时间
        System.out.println(date.toString());

        Date dNow = new Date();
        SimpleDateFormat ft = new SimpleDateFormat("E yyyy.MM.dd 'at' hh:mm:ss a zzz");

        System.out.println("Current Date:"+ ft.format(dNow));

        //初始化Date对象
        Date dater = new Date();

        //使用toString()显示日期和时间
        String str = String.format("Current Date/Time : %tc",date );

        System.out.println(str);

//        Date dates = new Date();
//
//        System.out.println("%1$s %2$tB %2$td,%2$tY"+"Due date:"+date);


        SimpleDateFormat Ft = new SimpleDateFormat("yyyy-MM-dd");


       // String input = args.lengh == 0 ? "1818-11-11" : args[0];

    }
}
